import { getRequest, postRequest } from '@/api/easyRequest'

export const List = function () {
    return getRequest('/productimg/list')
}

export const Edit = function (obj: any) {
    const { id } = obj
    return postRequest(id ? `/productimg/edit?id=${id}` : '/productimg/edit', obj)
}

export const Del = function (id: number) {
    return getRequest(`/productimg/del?id=${id}`)
}
